import sys
from gen_dates import *

assert len(sys.argv) == 2

name = sys.argv[1]

print('echo clearning..')
for c in ['BCHSV', 'XRP', 'ETC', 'ETH', 'BCHABC', 'BTC', 'EOS', 'LTC']:
  for expiry in ['THIS_WEEK', 'NEXT_WEEK', 'QUARTER']:
    n = f'{name}-{c}-USD.{expiry}-{dates}-{duration}'
    print(f'rm -rf out/{n} &')
    print(
        f'optuna delete-study --storage postgresql://postgres:jtm@hive-90.iosg:5432 --study-name {n} &'
    )

print('wait')
print('echo done')
